<?php

include_once 'common.php';

list ($mixed, $shortcut) = explode(":", $_GET["q"]);

if ($shortcut) {

    $champion = Champion::get_by_name($container, $mixed);

    $ability = Ability::get_by_shortcut($container, $champion, $shortcut);

    
} else {

    $ability = Ability::get_by_name($container, $mixed);

    $champion = Champion::get_by_id ($container, $ability->bloodline_id);


}

?>


<div class="champion_name"><?= $champion->name ?></div>
<br/>
<div class="ability_title"><?= $ability->name ?> (<?= $ability->type ?>)</div>
<br/>
<div class="tooltip"><?= $ability->tooltip ?></div>
<br/>
<div class="tooltip"><?= $ability->specs ?></div>